

* -------------- add in PPP-level GDP per capita
insheet using "CalledFiles/wdi_gdppc_ppp_usa_2022_01.csv", clear


rename *, lower
drop countryname timecode
rename countrycode ccode
rename time year 

* Constant U.S. dollars
rename gdppercapitaconstant2015usnygdpp AGDP2

* International dollars
rename gdppercapitapppconstant2017inter AGDP

replace AGDP = "." if AGDP == ".."
replace AGDP2 = "." if AGDP2 == ".."
destring(AGDP AGDP2), replace

replace ccode = "WBG" if ccode == "PSE"
drop if ccode == ""
